//
//  AppDelegate.m
//  TestDemo
//
//  Created by 张润东 on 2021/3/4.
//

#import <UIKit/UIKit.h>
#import "AppDelegate.h"
#import "ViewController.h"
#import "CHDynamicLoader.h"
@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // 所有注册到A的启动项将会在这个阶段启动
    [CHDynamicLoader executeFunctionsForKey:LEVEL_APPLaunch];
    // Override point for customization after application launch.
    self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
    self.window.backgroundColor=[UIColor whiteColor];
    ViewController*vc= [ViewController new];
    UINavigationController*nav = [[UINavigationController alloc]initWithRootViewController:vc];
    self.window.rootViewController = nav;
    [self.window makeKeyAndVisible];
    return YES;
}

-(void)applicationDidEnterBackground:(UIApplication *)application{
    [CHDynamicLoader executeFunctionsForKey:LEVEL_EnterBack];
}

-(void)applicationDidReceiveMemoryWarning:(UIApplication *)application{
    [CHDynamicLoader executeFunctionsForKey:LEVEL_MemWarning];
}




@end
